package com.bj.lawyermanger.dongao.controller;

import com.bj.lawyermanger.dongao.entity.Lawyer;
import com.bj.lawyermanger.dongao.service.LawyerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 律师控制其
 * @author  baijing
 * @version 1.0
 */
@Controller
public class LawyerController {
    @Autowired
    LawyerService lawyerService;

    @RequestMapping("/addLawyer")
    public String addLawyer(Lawyer lawyer){

        lawyerService.addLawyer(lawyer);
        //success代表网页success.html
        return "../static/success";

    }

}
